package com.lyd.generic.demo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.logging.Level;

/**
 * @Author:lyd
 **/
@AllArgsConstructor
@NoArgsConstructor
@Getter
public class MiniCat extends Cat {
    private int level;


    public MiniCat(String name, int age) {
        super(name, age);
        this.level= level;
    }

    @Override
    public String toString() {
        return "MiniCat{" +
                "level=" + level +
                "} " + super.toString();
    }
}
